<ion-view>
	<ion-content>
		<div class="content no-header ionic-pseudo">
			<form name="theForm" novalidate="novalidate">
				<div class="list card">
					<div class="item item-avatar">
						<img src="/Public/images/wkshop-logo.jpeg">
						<h2>【汪卡在线】-- 收银员绑定商铺</h2>
						<p>新入职的收银员绑定商铺操作页面</p>
					</div>
					<div class="item">
						<div class="list">
							<label class="item item-input">
								<span class="input-label">商铺扫码：</span>
								<button class="button button-small button-energized" ng-click="scanQrCode()">扫一扫商铺二维码</button>
							</label>
							<label class="item item-input">
								<span class="input-label">商铺名称：</span>
								<input type="text" placeholder="扫码后显示商铺名称" readonly value="{{formData.title}}">
							</label>
							<label class="item item-input">
								<span class="input-label">商铺地址：</span>
								<input type="text" placeholder="扫码后显示商铺地址" readonly value="{{formData.suite}}">
							</label>
							<label class="item item-input">
								<span class="input-label">店主手机：</span>
								<input type="text" placeholder="扫码后显示店主手机号码" readonly value="{{formData.boss_mobile}}">
							</label>
							<label class="item item-input">
								<span class="input-label">我的手机：</span>
								<input type="tel" placeholder="请输入手机号码"
								       ng-model="formData.mobile" ng-pattern="/^1[3|4|5|7|8][0-9]\d{4,8}$/" required>
							</label>
							<label class="item item-input">
								<span class="input-label">发送验证码：</span>
								<button class="button button-small button-dark" button-widget="sms" ac="bindPerson"
								        mobile="{{formData.mobile}}" ng-disabled="theForm.mobile.$invalid">
									立即发送短信验证码
								</button>
							</label>
							<label class="item item-input">
								<span class="input-label">短信验证码：</span>
								<input type="tel" placeholder="请输入短信验证码" ng-model="formData.snscode" required>
							</label>
							<label class="item item-input">
								<span class="input-label">员工绑定密码：</span>
								<input type="password" placeholder="请向老板索取员工绑定密码" ng-model="formData.password" required>
							</label>
						</div>
					</div>
					<div class="row">
						<div class="col-10"></div>
						<div class="col-80">
							<button class="button button-small button-balanced button-block button-positive" ng-click="submit()" ng-disabled="!theForm.$valid">绑定店铺</button>
						</div>
						<div class="col-10"></div>
					</div>
				</div>
			</form>
		</div>
		<div style="height: 1px;"></div>
	</ion-content>
</ion-view>